import { createApp } from 'vue'
import './style.css'
import 'vant/lib/index.css'; // 全局引入样式

import App from './App.vue'
import router from './router'
import axios from "axios"
import {
    Tabbar,
    TextEllipsis,
    TabbarItem,
    Search,
    Swipe, SwipeItem,
    Tab, Tabs ,
 Image as VanImage,
    Icon,
    Tag,
    NavBar,
    FloatingBubble,
    Notify,
    Button,
   Dialog,
    NoticeBar,
    Calendar,
    Pagination
} from 'vant';

import {Modal, Input as TinyInput, Button as TinyButton,Tag as TinyTag} from '@opentiny/vue'
axios.defaults.baseURL = process.env.NODE_ENV == 'development' ? "http://localhost:8101/":'https://xyvr1122.top:8101'
const app = createApp(App)
app.provide('axios', axios)
app.use(router)
app.use(TinyInput)
app.use(TinyButton)
app.use(TinyTag)

app.use(Dialog)
app.use(Calendar)
app.use(Pagination)

app.use(NoticeBar)
app.use(TextEllipsis)
app.use(NavBar)
app.use(Button)
app.use(Notify)
app.use(FloatingBubble)
app.use(Search)
app.use(Tag)
app.use(Icon);
app.use(VanImage)
app.use(Tabbar).use(TabbarItem)
app.use(Swipe);
app.use(SwipeItem)
app.use(Tab);
app.use(Tabs);
app.mount('#app')
